package main

import (
	"Ginproject/PwdLearn/symmetrical_encryption/rsa/utils"
	"fmt"
)

func main() {
	//utils.SaveRsaKey(2048)
	ret, err := utils.RsaEncode("JacksonP", "publicKey.pem")
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(ret)

	ret_pri, err := utils.RsaDecode(ret, "privateKey.pem")
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(ret_pri)
	fmt.Println(string(ret_pri))
}
